package com.ybliang.plat.cms;


import com.ybliang.plat.serviceapp.common.exception.Error;

/**
 *
 * @author liangyb
 */
public enum ErrorCode implements Error {

    //CMS相关异常
    CMS_SEARCH_EXCEPTION			(100100001,  	"CMS查询异常"),

    END_FLAG            			(111111111,		"ErrorCode结束标志位");

	private int code;
	private String msg;

	ErrorCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int getCode() {
		return 9999 * 100000 + code;
	}

	@Override
	public String getMessage() {
		return msg;
	}
}
